//
//  AudioConstant.h
//  WXIM
//
//  Created by fusuwei on 14-10-15.
//  Copyright (c) 2014年 naren. All rights reserved.
//

#import <Foundation/Foundation.h>

// Audio Settings
#define kNumberBuffers      3
#define t_sample            SInt16
#define kSamplingRate       8000; // 采样率 (立体声 = 8000) 44100
#define kNumberChannels     1         // 1:单声道；2:立体声
#define kBitsPerChannels    (sizeof(t_sample) * 8)   //语音每采样点占用位数
#define kBytesPerFrame      (kNumberChannels * sizeof(t_sample))
//#define kFrameSize          (kSamplingRate * sizeof(t_sample))
#define kFrameSize          1024


#define QUEUE_BUFFER_SIZE  4 //队列缓冲个数
#define EVERY_READ_LENGTH  1024*8 //每次从文件读取的长度
#define MIN_SIZE_PER_FRAME 1024*5 //每侦最小数据长度



@interface AudioConstant : NSObject

@end
